package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.QuerstionOptionMapper;
import com.rongke.model.QuerstionOption;
import com.rongke.service.QuerstionOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @QuerstionOptionServiceImpl
 * @问卷选项ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class QuerstionOptionServiceImpl extends ServiceImpl<QuerstionOptionMapper, QuerstionOption> implements QuerstionOptionService {

    @Autowired
    private QuerstionOptionMapper querstionOptionMapper;

    /**
     * @根据条件查找问卷选项
     * @param querstionOption
     * @return
     */
    @Override
    public List<QuerstionOption> selectByCondition(QuerstionOption querstionOption) {
        return querstionOptionMapper.selectByCondition(querstionOption);
    }
}
